package com.example.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.provider.Telephony;
import android.util.Log;

public class SmsIntentReceiver extends BroadcastReceiver {
	private static final String TAG = "SmsIntentReceiver";
	@Override
	public void onReceive(Context context, Intent intent) {
		if(intent.getAction().equals("android.provider.Telephony.SMS_RECEIVED")) {
			//String album = intent.getStringExtra("album");
			Log.i(TAG, " message is received");
		}
	}

}
